<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Log in</title>
</h:head>
<h:body>
	<h:messages />
	<h:form id="loginForm" prependId="false">
		<h:panelGrid columns="2">
			<h:outputLabel for="userName">Username:</h:outputLabel>
			<h:inputText id="userName" value="#{credentials.username}" />
			<h:outputLabel for="password">Password:</h:outputLabel>
			<h:inputSecret id="password" value="#{credentials.password}" />
			<h:commandButton id="login" value="Log in" action="#{loginController.login}" />
		</h:panelGrid>
		<p:inputText value="#{renderedLoggedIn}" />
	</h:form>
</h:body>
</html>